#include<iostream>
using namespace std;
int main ()
{
    int n,i;
    i=0;
    cin>>n;
    while(n!=0)
    {
        cout<<"Ingrese numero"<<endl;
        i=i+n;
        cin>>n;
    }
    cout<<endl<<i<<endl;
    return 1;
}
